package com.qfedu.lc.user.controller;


import com.qfedu.lc.common.vo.R;
import com.qfedu.lc.user.service.PayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 10.支付记录表 前端控制器
 * </p>
 *
 * @author wgz
 * @since 2024-06-12
 */
@RestController
@RequestMapping("/pay")
public class PayLogController {


    @Autowired
    private PayLogService payLogService;

    /**
     * 支付宝支付以后的回调
     * @return
     */
    @RequestMapping("/alipay/cb")
    public R alipayCallBack(@RequestParam("out_trade_no") String no){

        return payLogService.alipayCallBack(no);

    }


}

